package com.ying.user.service;

import com.ying.common.entity.Response;
import com.ying.user.entity.dto.*;

import javax.servlet.http.HttpServletRequest;
import java.util.function.Function;

public interface MmUserService {

    /**
     * 注册
     */
    Function<MmUserRegister, Response> register();
    /**
     * 登录
     */
    Function<MmUserLogin, Response> login();
    /**
     * 登出
     */
    Function<HttpServletRequest, Response> logout();
    /**
     * 用户添加角色权限
     */
    Function<MmUserAdd, Response> add();
    /**
     * 发送短信
     */
    Function<String, Response> sendSms();
    /**
     * 忘记密码
     */
    Function<MmUserForget, Response> forget();
    /**
     * 重置密码
     */
    Function<MmUserReset, Response> reset();
}
